﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MVCFoto.Master" Inherits="System.Web.Mvc.ViewPage<MVCFoto.Model.UserInfo>" %>
<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent" runat="server">
    修改密码
</asp:Content>

<asp:Content ID="registerJS" ContentPlaceHolderID="MetaContent" runat="server">
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/jquery-1.3.2.min.js")%>"></script>
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/jquery.validate.pack.js")%>"></script>
<script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/Scripts/preferences.js")%>"></script>
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
 <div class="primaryContent">
 <div class="breadcrumb"><%=Html.RouteLink(Model.UserName,"User",new{userid=Model.UserID}) %> / 
 <span style="font-weight: normal;" class="gray">修改个人资料</span>
</div>
    <ul id="preNav" class="tab">
    <li><%=Html.ActionLink("个人资料","Preferences" )%></li>
    <li class="current"><a>修改密码</a></li>
    </ul>
    
   
    <%= Html.ValidationSummary("修改密码失败,请检查您的输入.") %>
    <div id="divChangePassword">    
     <% using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post, new { id = "form_changepassword", @class="preferences"}))
        {%>
        <p>
            密码最少<%=ViewData["PasswordLength"]%>位<br />
        </p>
        <p>
                    <label for="currentPassword">原密码:</label>
                    <%= Html.Password("currentPassword")%>
                    <%= Html.ValidationMessage("currentPassword")%>
                </p>
        <p>
                    <label for="newpassword">新密码:</label>
                    <%= Html.Password("newpassword")%>
                    <%= Html.ValidationMessage("newpassword")%>
                </p>
                <p>
                    <label for="confirmPassword">密码确认:</label>
                    <%= Html.Password("confirmPassword")%>
                    <%= Html.ValidationMessage("confirmPassword")%>
                </p>
                 <p  style="text-align:center;">
                     <button type="submit" class="submitBtn" value="保  存"><span>保  存</span></button>
                </p>
         <%} %>
    </div>
    </div>
    <div class="secondaryContent">
		<%Html.RenderPartial("UserTopAlbums", Model); %>
	</div>	
</asp:Content>

